<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

<script>

let arr1=[1,2,3,4,5]
let arr2=arr1.map(item=>item*2)
console.log(arr2)
let arr3=arr1.map(item=>'a'+item)
console.log(arr3)
let arr4=[
{name:'xiaoliu',age:9},
{name:'xiaoliu',age:12},
{name:'xiaoliu',age:13},
{name:'xiaoliu',age:16}
]
let arr5=arr4.map(item=>item.age)
console.log(arr5)
let arr6=arr4.map(item=>({
name:item.name,
age:item.age
}))
console.log(arr6)


</script>


    <script src="vue.js"></script>
    <script src="axios.js"></script>


</body>
</html>